﻿/**
 * Bits And Pixels Source Code - Confidential  
 * Copyright © 2004 Aral Balkan. All Rights Reserved.
 * Copyright © 2004 Ariaware Limited.
 * 
 * Project: Ariaware RIA Platform (ARP)
 * File: AbstractPrototype. 
 * Created by: Aral Balkan
 */
class AbstractPrototype 
{

	/////////////////////////////////////////////////////////////
	// constructor	
	/////////////////////////////////////////////////////////////
	
	public function AbstractPrototype ( Void )  
	{
		// nothing
	}
	
	/////////////////////////////////////////////////////////////
	// applyTo()
	/////////////////////////////////////////////////////////////

	public function applyTo ( targetObj:Object ) 
	{
		for ( var i in this ) {
			targetObj [ i ] = this [ i ];
		}
		targetObj.initialize();
	}

	/////////////////////////////////////////////////////////////
	// initialize()
	/////////////////////////////////////////////////////////////
	
	public function initialize ( Void )
	{
		trace ("Default AbstractPrototype initialize.");
	}
}